package org.dromara.authcode.domain.bo;

import org.dromara.authcode.domain.TDevice;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 设备信息业务对象 t_device
 *
 * @author Miles Meng
 * @date 2025-08-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TDevice.class, reverseConvertGenerate = false)
public class TDeviceBo extends BaseEntity {

    /**
     * 设备唯一标识
     */
    @NotNull(message = "设备唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 关联用户 ID
     */
    private Long userId;

    /**
     * MAC 地址
     */
    private String macAddress;

    /**
     * 有效期
     */
    private Date validTime;

    /**
     * 激活开关(1=有效0=无效)
     */
    private Long activeStatus;

    /**
     * 设备硬件型号
     */
    private String board;

    /**
     * 设备别名
     */
    private String alias;

    /**
     * 固件版本号
     */
    private String appVersion;


}
